package site.lanmushan.framework.datascope.properties;

import lombok.Data;
import lombok.ToString;
import org.bouncycastle.asn1.cms.PasswordRecipientInfo;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.stereotype.Component;
import site.lanmushan.framework.datascope.bean.RuleBean;

import java.util.List;
import java.util.Map;

/**
 * @author Administrator
 */
@Component
@ConfigurationProperties(prefix = "slash.data-control.data-scope")
@Data
@EnableConfigurationProperties(DataScopeProperties.class)
@ToString
public class DataScopeProperties {
    private Boolean enabled;
    private Map<String,List<DataScopeRule>> select;
    private Map<String,List<DataScopeRule>> update;
    private Map<String,List<DataScopeRule>> delete;
    private Map<String,List<DataScopeRule>> global;
}
